package dao

import (
	"time"
)

// 这是 LiAfterSale 的全局公开dao对象
var LiAfterSaleDao = liAfterSaleDao{}

// 这是 li_after_sale表 的实体类
type LiAfterSale struct {
	Id                int       `json:"id" form:"id" v:"id"`                                                    // ID
	CreateBy          string    `json:"create_by" form:"create_by" v:"create_by"`                               // 创建者
	CreateTime        time.Time `json:"create_time" form:"create_time" v:"create_time"`                         // 创建时间
	DeleteFlag        bool      `json:"delete_flag" form:"delete_flag" v:"delete_flag" gm:"delete_flag"`        // 删除标志 true/false 删除/未删除
	UpdateBy          string    `json:"update_by" form:"update_by" v:"update_by"`                               // 更新者
	UpdateTime        time.Time `json:"update_time" form:"update_time" v:"update_time"`                         // 更新时间
	AccountType       string    `json:"account_type" form:"account_type" v:"account_type"`                      // 账号类型
	ActualRefundPrice float64   `json:"actual_refund_price" form:"actual_refund_price" v:"actual_refund_price"` // 实际退款金额
	AfterSaleImage    string    `json:"after_sale_image" form:"after_sale_image" v:"after_sale_image"`          // 评价图片
	ApplyRefundPrice  float64   `json:"apply_refund_price" form:"apply_refund_price" v:"apply_refund_price"`    // 申请退款金额
	AuditRemark       string    `json:"audit_remark" form:"audit_remark" v:"audit_remark"`                      // 商家备注
	BankAccountName   string    `json:"bank_account_name" form:"bank_account_name" v:"bank_account_name"`       // 银行开户名
	BankAccountNumber string    `json:"bank_account_number" form:"bank_account_number" v:"bank_account_number"` // 银行账户
	BankDepositName   string    `json:"bank_deposit_name" form:"bank_deposit_name" v:"bank_deposit_name"`       // 银行开户行
	FlowPrice         float64   `json:"flow_price" form:"flow_price" v:"flow_price"`                            // 实际金额
	GoodsId           string    `json:"goods_id" form:"goods_id" v:"goods_id"`                                  // 商品ID
	GoodsImage        string    `json:"goods_image" form:"goods_image" v:"goods_image"`                         // 商品图片
	GoodsName         string    `json:"goods_name" form:"goods_name" v:"goods_name"`                            // 商品名称
	MDeliverTime      time.Time `json:"m_deliver_time" form:"m_deliver_time" v:"m_deliver_time"`                // 买家 发货时间
	MLogisticsCode    string    `json:"m_logistics_code" form:"m_logistics_code" v:"m_logistics_code"`          // 买家 物流公司CODE
	MLogisticsName    string    `json:"m_logistics_name" form:"m_logistics_name" v:"m_logistics_name"`          // 买家 物流公司名称
	MLogisticsNo      string    `json:"m_logistics_no" form:"m_logistics_no" v:"m_logistics_no"`                // 买家 发货单号
	MemberId          string    `json:"member_id" form:"member_id" v:"member_id"`                               // 用户ID
	MemberName        string    `json:"member_name" form:"member_name" v:"member_name"`                         // 用户名称
	Num               int       `json:"num" form:"num" v:"num"`                                                 // 申请数量
	OrderSn           string    `json:"order_sn" form:"order_sn" v:"order_sn"`                                  // 订单编号
	PayOrderNo        string    `json:"pay_order_no" form:"pay_order_no" v:"pay_order_no"`                      // 订单支付方式返回的交易号
	ProblemDesc       string    `json:"problem_desc" form:"problem_desc" v:"problem_desc"`                      // 问题描述
	Reason            string    `json:"reason" form:"reason" v:"reason"`                                        // 申请原因
	RefundPoint       int       `json:"refund_point" form:"refund_point" v:"refund_point"`                      // 退还积分
	RefundTime        time.Time `json:"refund_time" form:"refund_time" v:"refund_time"`                         // 退款时间
	RefundWay         string    `json:"refund_way" form:"refund_way" v:"refund_way"`                            // 退款方式
	StoreId           string    `json:"store_id" form:"store_id" v:"store_id"`                                  // 店铺ID
	StoreName         string    `json:"store_name" form:"store_name" v:"store_name"`                            // 店铺名称
	ServiceStatus     string    `json:"service_status" form:"service_status" v:"service_status"`                // 售后单状态
	ServiceType       string    `json:"service_type" form:"service_type" v:"service_type"`                      // 售后类型
	SkuId             string    `json:"sku_id" form:"sku_id" v:"sku_id"`                                        // 货品ID
	Sn                string    `json:"sn" form:"sn" v:"sn"`                                                    // 售后服务单号
	Specs             string    `json:"specs" form:"specs" v:"specs"`                                           // 规格json
	TradeSn           string    `json:"trade_sn" form:"trade_sn" v:"trade_sn"`                                  // 交易编号
	OrderItemSn       string    `json:"order_item_sn" form:"order_item_sn" v:"order_item_sn"`                   // 订单货物编号

}

// 注意:这是 LiAfterSale 的私有dao对象
type liAfterSaleDao struct {
	Insert func(arg LiAfterSale) int         //插入一条记录
	Update func(arg LiAfterSale) int         //更新一条记录
	Delete func(arg LiAfterSale) int         //删除一条记录
	Select func(arg LiAfterSale) LiAfterSale //获取一条记录
}
